using System;
using System.Data;
using System.Data.OleDb;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

namespace ExcelSample {
    public class DataAccess : Page {
        public DataAccess () {}

        public void MainConnect () {
            StrConnectionString = ConfigurationManager.ConnectionStrings["MainConnectionStr"].ConnectionString;
        }

        public void SubConnect () {
            StrConnectionString = ConfigurationManager.ConnectionStrings["SubConnectionStr"].ConnectionString;
        }
        
        private string strConnectionString;
        public string StrConnectionString {
            get { return strConnectionString; }
            set { strConnectionString = value; }
        }
    }
}